package com.maxMgmt.Mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.maxMgmt.Dto.DoctTypesDto;

public class DoctTypesMapper implements RowMapper{

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		DoctTypesDto doctTypesDto = new DoctTypesDto();
		
		doctTypesDto.setDocttypeId(rs.getInt("DOCT_TYPE_ID"));
		doctTypesDto.setDoctTypeName(rs.getString("DOCT_TYPE_NAME"));
		
		return doctTypesDto;
	}

}
